<!DOCTYPE html>
<html lang="en">
@include("/common/head.html"){}
<body>

<div class="header">
    <div class="main">
        <div class="nav-user">
            <a href="user/login">登录</a>
            <a href="user/register">注册</a>
        </div>
    </div>
</div>


<div class="main layui-clear">
    <div>
        <a href="${ctxPath}/article/add">发表文章</a>
        <a href="${ctxPath}/games/list">小游戏</a>
    </div>
    <div>

        <table class="layui-table" style="table-layout:fixed ; ">
            <colgroup>
                <col width="150">
                <col width="200">
                <col>
            </colgroup>
            <thead>
            <tr>
                <th>序号</th>
                <th>标题</th>
                <th style="width: 10rem">内容</th>
            </tr>
            </thead>
            <tbody>
            @for(article in articleList){
            <tr>
                <td>${articleLP.index}</td>
                <td>${article.articleTitle}</td>
                <td style="word-wrap:break-word;">${article.articleContent}</td>
            </tr>
            @}
            </tbody>
        </table>
    </div>
</div>

<div class="footer">
</div>
<script src="resources/layui/layui.js"></script>
<script>
    layui.config({
        version: false //一般用于更新模块缓存，默认不开启。设为true即让浏览器不缓存。也可以设为一个固定的值，如：201610
        ,debug: true //用于开启调试模式，默认false，如果设为true，则JS模块的节点会保留在页面
        ,base: '' //设定扩展的Layui模块的所在目录，一般用于外部模块扩展
    });
</script>
</body>
</html>